import http from '@/utils/http'
import type { LabelValue } from '@/types/global'

/** @desc 查询字典列表 */
export function listDictData() {
  return http.get<Record<string, LabelValue[]>>('/common/dict')
}

/** @desc 查询网站配置 */
export function getWebsiteConfig() {
  return http.get<WebsiteConfig>('/common/config/website')
}

/** @desc 提交错误 */
export function submitError(req: any) {
  return http.post('/common/error/submit', req)
}
